package short_semester.questionnaire_planet.response.fillResponse;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import short_semester.questionnaire_planet.pojo.MultiChoiceOption;
import short_semester.questionnaire_planet.pojo.ScoreOption;
import short_semester.questionnaire_planet.pojo.SingleChoiceOption;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class OptionRecordResponse {
    Integer id;
    String text;
    String description;
    Integer count;
    Integer score;
    Integer store;
    Boolean isChoosed;
    
    Boolean isCorrect;
    
    public OptionRecordResponse(SingleChoiceOption option){
        id=option.getId();
        text=option.getText();
        description=option.getDescription();
        count=option.getCount();
        store=option.getStore();
        isCorrect=option.getIsCorrect();
    }

    public OptionRecordResponse(MultiChoiceOption option){
        id=option.getId();
        text=option.getText();
        description=option.getDescription();
        count=option.getCount();
        store=option.getStore();
        isCorrect=option.getIsCorrect();
    }
    

    public OptionRecordResponse(ScoreOption option){
        id=option.getId();
        text=option.getText();
        score = option.getScore();
        count=option.getCount();
    }
}
